An object is called when it is instantiated. When _ construct and a function with the class name coexist, __construct will be called, and the other will not be called.
1. magic functions
(13)
1. _ construct ()
An object is called when it is
1. Magic Constants
There are eight magic constants in PHP, and their values change as they change position in the code. These special constants are case insensitive.
Line: Returns the current row number in the file. Can also be written in
Instance
Remove the characters to the left of the string:
"; Echo LTrim ($str, "Hello"); >
Definition and usage
The LTrim () function removes white space characters or other predefined characters to the left of the string.
Related functions:
RTrim ()
: This article mainly introduces php programming notes. if you are interested in PHP tutorials, please refer to them. Three methods for php to obtain POST data
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese
Php programming notes-three methods for obtaining POST data from small_123 php
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese character to pinyin source code
Php traverses the Directory, generates the md5
Three ways to get post data from PHP
PHP image plus watermark source code
One of the simplest examples of Php+ajax+json
PHP Chinese Pinyin Source code
PHP iterates through directories, generates MD5 values for each file in the directory, and writes
PHP pre-defined variable array 1, $_server
The $_server Super global variable contains information created by the Web server that provides information about the server and client configuration and the current request environment. Depending on the
Session variable ($_session): The data produced by the PHP session function is stored in the $_session variable in the form of a super global variable.
1. Introduction to Session
Sessions are also called session periods, which are small pieces of
This article mainly sorts out the predefined interfaces of PHP, which are commonly used in the project process: IteratorAggregate (Iterator of aggregate Iterator), Countable, ArrayAccess, Iterator, you can refer to the following predefined
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.